FROM openjdk:8-jdk

# 容器日志目录持久化挂载
VOLUME /app/gyp/logs

# 设置容器时区
ENV TZ=Asia/Shanghai

# RUN 创建目录
RUN mkdir -p /app/gyp/lib



# 设置工作目录
WORKDIR /app/gyp

COPY deploy.sh /app/gyp/deploy.sh
COPY gyp-1.0.0-SNAPSHOT.jar /app/gyp/gyp-1.0.0-SNAPSHOT.jar
COPY lib/*.jar /app/gyp/lib/

RUN chmod 777 /app/gyp/deploy.sh

# 指定端口
EXPOSE 8090
# 启动入口
CMD ["./deploy.sh","start"]